package cn.redsoft.wechatapi.msg.req.generic;

import cn.redsoft.wechatapi.msg.req.RequestMsg;
import cn.redsoft.wechatapi.msg.req.RequestMsgType;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class TextRequestMsg extends RequestMsg {

	@XStreamAlias("Content")
	protected String content;

	public TextRequestMsg() {
		this.msgType = RequestMsgType.TEXT;
	}

	public TextRequestMsg(String toUserName, String fromUserName,
			Long createTime, long msgId, String content) {
		super(toUserName, fromUserName, createTime, null, msgId);
		this.msgType = RequestMsgType.TEXT;
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "RequestTextMsg [content=" + content + ", toUserName="
				+ toUserName + ", fromUserName=" + fromUserName
				+ ", createTime=" + createTime + ", msgType=" + msgType
				+ ", msgId=" + msgId + "]";
	}
}
